package com.java.goods.service.impl;

import com.java.common.vo.R;
import com.java.goods.entity.Desc;
import com.java.goods.mapper.DescMapper;
import com.java.goods.service.DescService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;

/**
 * <p>
 * 商品描述表 服务实现类
 * </p>
 *
 * @author jiangli
 * @since 2019-12-15
 */
@Service
public class DescServiceImpl extends ServiceImpl<DescMapper, Desc> implements DescService {
	@Autowired
	private DescMapper descMapper;

	@RequestMapping("/getItemDesc")
	public R getItemDesc(@RequestParam("id") Long id) {
		Desc desc = descMapper.getItemDesc(id);
		return R.ok(desc);
	}

}
